﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frame.Lib.Core.User
{
    public partial class UserInfo
    {
        public string DeptName
        {
            get;
            set;
        }
        public List<int> DeptIDs
        {
            get;
            set;
        }


        private List<int> _roleIDs;
        public Func<int,List<int>> GetRoleIDs;
        public List<int> RoleIDs
        {
            get
            {
                if (_roleIDs == null)
                {
                    _roleIDs = GetRoleIDs(this.ID);
                }
                return _roleIDs;
            }
            set
            {
                _roleIDs = value;
            }
        }

        /// <summary>
        /// 暂没用
        /// </summary>
        public string DecryptPassword
        {
            get;
            set;
        }

        public string EncryptPassword
        {
            get;
            set;
        }
    }
}
